package com.jxzyk.model.course;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.core.ui.fragment.BaseFragment;
import com.jxzyk.R;
import com.jxzyk.entity.Course;
import com.lidroid.xutils.view.annotation.ViewInject;

public class DetailsFragment extends BaseFragment {
	private CourseActivity activity;
	private Course course;
	@ViewInject(R.id.tv_course_details)
	TextView tv_details;

	@Override
	public void initData(Bundle bundle) {
		activity = (CourseActivity) getActivity();
	}

	@Override
	public int initUiRes() {
		return R.layout.fra_course_details;
	}

	@Override
	public void initUi(View view) {
		Bundle bundle = activity.getBundle();
		course = (Course) bundle.getSerializable(Course.class.getName());
		if (course != null) {
			tv_details.setText(course.getCourse_memo());
		}
	}

}
